package com.site.util.base.dto;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


import com.site.dto.backend.system.AuthorityBizBean;
import com.site.util.base.businessbean.BaseBusinessBean;

/**
 * 用户 POJO
 */
public class User extends BaseBusinessBean{
	
	private static final long serialVersionUID = 1L;

	private Integer id;

	private String userName;

	private String password; 
	
	private String userRealName;
	
	//用户类型，使用constants中固定属性
	private String userType;

	/*
	 * 用户登录次数
	 */
	private Long loginCount;
	
	/*
	 * 上次登录的IP
	 */
	private String lastIP;
	
	/*
	 * 上次登录的时间
	 */
	private Date lastTime;
	/*
	 * 用户的权限
	 */
	private Set<AuthorityBizBean> authSet=new HashSet<AuthorityBizBean>(); 
	 
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public String getUserName() {
		return userName;
	}

	public void setPassword(String passWord) {
		this.password = passWord;
	}

	public String getPassword() {
		return this.password;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserRealName(String userRealName) {
		this.userRealName = userRealName;
	}

	public String getUserRealName() {
		return userRealName;
	}

	public void setLoginCount(Long loginCount) {
		this.loginCount = loginCount;
	}

	public Long getLoginCount() {
		return loginCount;
	}

	public void setLastIP(String lastIP) {
		this.lastIP = lastIP;
	}

	public String getLastIP() {
		return lastIP;
	}

	public void setLastTime(Date lastTime) {
		this.lastTime = lastTime;
	}

	public Date getLastTime() {
		return lastTime;
	}

	public Set<AuthorityBizBean> getAuthSet() {
		return authSet;
	}

	public void setAuthSet(Set<AuthorityBizBean> authSet) {
		this.authSet = authSet;
	}
}
